Class PlantDrop

java.lang.Object
jeresources.api.drop.PlantDrop

public class PlantDrop extends Object
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static enum 
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    PlantDrop(net.minecraft.world.item.ItemStack drop, float chance)
    Use this for registering seeds that have a chance less than one to drop
    PlantDrop(net.minecraft.world.item.ItemStack drop, int itemWeight)
    DON'T USE! This constructor is meant for registering grass Which get auto collected by NER
    PlantDrop(net.minecraft.world.item.ItemStack drop, int minDrop, int maxDrop)
    Use this for registering seeds that have a chance of dropping more than one time
  • Method Summary

    Modifier and Type
    Method
    Description
    float
     
    net.minecraft.world.item.ItemStack
     
     
    int
     
    int
     
    int
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • PlantDrop

      public PlantDrop(net.minecraft.world.item.ItemStack drop, int itemWeight)
      DON'T USE! This constructor is meant for registering grass Which get auto collected by NER
      Parameters:
      drop - the The drop an ItemStack
      itemWeight - The Weight of the drop
    • PlantDrop

      public PlantDrop(net.minecraft.world.item.ItemStack drop, float chance)
      Use this for registering seeds that have a chance less than one to drop
      Parameters:
      drop - The drop an ItemStack
      chance - the chance as float
    • PlantDrop

      public PlantDrop(net.minecraft.world.item.ItemStack drop, int minDrop, int maxDrop)
      Use this for registering seeds that have a chance of dropping more than one time
      Parameters:
      drop - The drop an ItemStack
      minDrop - minimum of seeds dropped
      maxDrop - maximum of seeds dropped
  • Method Details

    • getDrop

      public net.minecraft.world.item.ItemStack getDrop()
    • getWeight

      public int getWeight()
    • getMinDrop

      public int getMinDrop()
    • getMaxDrop

      public int getMaxDrop()
    • getChance

      public float getChance()
    • getDropKind

      public PlantDrop.DropKind getDropKind()